import { createApp } from "vue";
import "./assets/less/index.less";
import 'reflect-metadata';
import App from "./App.vue";
const app = createApp(App);

// 路由
import router from "./routers";
app.use(router);

// pinia
import { createPinia } from "pinia";
const pinia = createPinia();
app.use(pinia);

// 多语言
import i18n from "@/language";
app.use(i18n);

// 性能sdk
// import sdk from "monitor-sdk_plugins";
// app.use(sdk);

// 理点
// import { Tracker } from "@/utils/tracker/";
// new Tracker({
//   requestUrl: "http://127.0.0.1:3357/vvv",
//   jsError: true,
//   domTracker: true,
//   historyTracker: true,
//   hashTracker: true,
// });

// 批量使用我的插件
import myPlugins from "@/plugins";
app.use(myPlugins);

// 注册全部 element图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 页面引导
import "v3-tour/dist/vue-tour.css";
import VueTour from "v3-tour";
app.use(VueTour);

// 引入饿了么全部css样式
import "element-plus/dist/index.css";

// vxe-table 表格配置
import { VXETable } from "vxe-table";
import "vxe-table/lib/style.css";
// 国际化
VXETable.setup({
  i18n: (key, args) => i18n.global.t(key, args),
});


// Reflect.metadata
app.mount("#app");
